package com.talkyun.openx.server.core;

public class ServiceResponse extends ServiceMessage {
    public enum Status {
        NORMAL, ERROR
    }

    private Status status = Status.NORMAL;
    private String result;

    public ServiceResponse(String session) {
        super(session);
    }

    public ServiceResponse(String session, Status status) {
        super(session);
        this.status = status;
    }

    public ServiceResponse(String session, Status status, String result) {
        super(session);
        this.status = status;
        this.result = result;
    }

    public Status getStatus() {
        return status;
    }

    public ServiceResponse setStatus(Status status) {
        this.status = status;
        return this;
    }

    public String getResult() {
        return result;
    }

    public ServiceResponse setResult(String result) {
        this.result = result;
        return this;
    }
}